<template>
<h3>组件A</h3>
<ComponentB :title="title" :age="age" />
</template>

<script>
import ComponentB from './ComponentB.vue';
    export default{
        data(){
            return{
                title:"标题",
                age:20,
                names:["name1", "name2"],
                time:10
            }
        },
        components:{
            ComponentB
        }
    }
</script>

